dreamweaver.saveDocument()

Availability 2.0
Description Saves the specified file on a local drive.
Note: In Dreamweaver 2, if the file is read-only, Dreamweaver tries to check it out. If the document is still read-only after this attempt—or if it cannot be created—an error message appears.
Arguments documentObject, {fileURL}
The argument is the object at the root of a document's DOM tree (the value returned by dreamweaver.getDocumentDOM()).
The second argument is a URL representing a location on a local drive. If the URL is relative, it is relative to the extension file. In Dreamweaver 2, this argument is required. If fileURL is omitted in Dreamweaver 3, the file is saved to its current location if it has been previously saved; otherwise, a Save dialog box appears.
Returns A Boolean value indicating success (TRUE) or failure (FALSE).
Enabler dreamweaver.canSaveDocument()